/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jy.springbootcmsservice.modules.sys.entity;

import com.jy.springbootcmsservice.common.base.entity.TreeEntity;
import lombok.Data;

/**
 * 区域Entity
 * @author tm
 * @version 2020-11-23
 */
@Data
public class Area extends TreeEntity<Area> {

    /**
     * 区域编码
     */
	private String code;
    /**
     * 区域名称
     */
	private String name;
    /**
     * 区域类型（1：国家；2：省份、直辖市；3：地市；4：区县）
     */
	private String type;

	public Area(){
		super();
		this.sort = 30;
	}

	public Area(String id){
		super(id);
	}

	@Override
	public Area getParent() {
		return super.parent;
	}

	@Override
	public void setParent(Area parent) {
		super.parent = parent;
	}

}